import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import axios from "axios";
import 'element-ui/lib/theme-chalk/index.css';
Vue.prototype.$axios=axios;
Vue.use(ElementUI)
router.afterEach( route => {

  //管理员路由后置守卫
  if (route.path == "/root") {
    document.getElementsByClassName("head1")[0].style.display = "none"
    document.getElementsByClassName("bottom1")[0].style.display = "none"
  }

})
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')